/**
 * 
 */
window.winTip={		
	alert:function(message){
		bootbox.alert({
		    message:'<div class="text-center">'+ message+"</div>",
		    size: 'small',
		    buttons:{
		    	ok:{label:'确定'}
		    }
		});		
	},
	alert:function(message,callback){
		bootbox.alert({
			message: '<div class="text-center">'+ message+"</div>",
		    size: 'small',
		    buttons:{
		    	ok:{label:'确定'}
		    },
		    callback:callback
		});		
	},
	confirm:function(message,callback){
		bootbox.confirm({
		    message: '<div class="text-center">'+ message+"</div>",
		    buttons: {
		        confirm: {
		            label: '确定',
		            className: 'btn-success'
		        },
		        cancel: {
		            label: '取消',
		            className: 'btn-danger'
		        }
		    },
		    callback: callback
		});		
	},
	confirmAndTitle:function(title,message,callback){
		bootbox.confirm({
			 title: title,
			 message: '<div class="text-center">'+ message+"</div>",
			 buttons: {
			        confirm: {
			            label: '确定',
			            className: 'btn-outline'
			        },
			        cancel: {
			            label: '取消',
			            className: 'btn-outline'
			        }
			 },
			 callback: callback
		}).find('.modal-dialog').addClass('modal-info');
		
	},
	
	loadDialog:function(message){
		var dialog = bootbox.dialog({
		    message: '<p class="text-center">'+message+'</p>',
		    closeButton: false,
		});
		
		dialog.init(function(){
			setTimeout(function(){
				
			},3000);
		}).hide(0);
		
		
		

	}
}